#!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
@Project ：cross_gameserver 
@File    ：act_id_remark.py
@IDE     ：PyCharm 
@Author  ：ZhongZhaopai
@Date    ：2021/9/2 10:00 
'''


class ActionRemark(object):

    _remark_dict = {}

    def init_remark(self, act_id, remark):
        """
        初始化remark文本
        :param act_id: 接口id
        :param remark: 接口描述
        :return:
        """
        self._remark_dict[act_id] = remark

    def get_remark_by_act_id(self, act_id):
        """
        获取接口remark
        :param act_id: 接口id
        :return:
        """

        return self._remark_dict.get(act_id, "")


global_act_remark = ActionRemark()
